<template>
  <div>
    <span>面包屑导航</span>
    <el-button @click="logout">退出登录</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    logout() {
      // 清除信息
      this.$store.commit('clearUserInfo');
      this.$router.push('/login');
    }
  }
}
</script>

<style>

</style>